﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FubiManger.UI;

namespace FubiManger.Controls
{
    ////ToolboxItem用于控制是否添加自定义控件到工具箱，true添加，false不添加
    //[System.ComponentModel.ToolboxItem(true)]
    partial class chooseactivitycontrol : Smobiler.Core.Controls.MobileUserControl
    {
        /// <summary>
        /// 商户ID
        /// </summary>
        public string merchantid { get; set; }
        public chooseactivitycontrol() : base()
        {
            //This call is required by the SmobilerUserControl.
            InitializeComponent();
        }
        /// <summary>
        /// 秒杀
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnkill_Press(object sender, EventArgs e)
        {
            AddactivityForm frm = new AddactivityForm();
            frm.merchantid = merchantid;
            frm.activity_type = "1";//秒杀
            this.Form.Show(frm, true, (obj, args) =>
            {
                //((ActivitysForm)this.Form).Refsh();//刷新
                this.Close();
            });


        }
        /// <summary>
        /// 团购
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btngroup_Press(object sender, EventArgs e)
        {
            AddactivityForm frm = new AddactivityForm();
            frm.merchantid = merchantid;
            frm.activity_type = "2";//团购
            this.Form.Show(frm, true, (obj, args) =>
            {
                //((ActivitysForm)this.Form).Refsh();//刷新
                this.Close();
            });
        }
    }
}